@extends('frontend/layouts/flaty_to_bootstrap')

@section('content.titley')
Edit Container [{{  $container->id }}] ::
@parent
@stop

    @section('content.breadcrumb.inner')
    <li><a href="{{  route('home') }}"><i class="icon-home"></i> Dashboard</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li><a href="{{  route('car_balance.container.index') }}"><i class="icon-home"></i> Container list</a><span class="divider"><i class="icon-angle-right"></i></span></li>
    <li class="active">Edit Container [{{  $container->id }}] </li>
    @stop

@section('content.main')

<p>{{ link_to_route('car_balance.container.index', 'Back to Container list', null, array('class' => 'btn btn-info')) }}</p>

<div class="row-fluid">
    {{ Form::open(array('route' => array('car_balance.container.edit', $container->id), 'class' => 'form-horizontal')) }}

    <div  class="control-group {{ $errors->first('container_apply', ' error') }}">
        <label class="control-label" for="container_apply">Container Apply</label>
        <div class="controls">
            <input class="" placeholder="Container Apply" title="Container Apply" name="container_apply" type="text" value="{{ Input::old('container_apply', $container->container_apply) }}">
            {{ $errors->first('container_apply', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('transport_start_date', ' error') }}">
        <label class="control-label" for="transport_start_date">Transport Start Date</label>
        <div class="controls">
            <input class="" placeholder="Transport Start Date" title="Transport Start Date" name="transport_start_date" type="text" value="{{ Input::old('transport_start_date', $container->transport_start_date) }}">
            {{ $errors->first('transport_start_date', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('transport_end_date', ' error') }}">
        <label class="control-label" for="transport_end_date">Transport End Date</label>
        <div class="controls">
            <input class="" placeholder="Transport End Date" title="Transport End Date" name="transport_end_date" type="text" value="{{ Input::old('transport_end_date', $container->transport_end_date) }}">
            {{ $errors->first('transport_end_date', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('fee', ' error') }}">
        <label class="control-label" for="fee">Fee</label>
        <div class="controls">
            <input class="" placeholder="Fee" title="Fee" name="fee" type="text" value="{{ Input::old('fee', $container->fee) }}">
            {{ $errors->first('fee', '<span class="help-inline">:message</span>') }}
        </div>
    </div>
    <div  class="control-group {{ $errors->first('car_count', ' error') }}">
        <label class="control-label" for="car_count">Car Count</label>
        <div class="controls">
            <input class="" placeholder="Car Count" title="Car Count" name="car_count" type="text" value="{{ Input::old('car_count', $container->car_count) }}">
            {{ $errors->first('car_count', '<span class="help-inline">:message</span>') }}
        </div>
    </div>


    <div class="form-actions">
        {{  Form::submit('Submit', array('class' => 'btn btn-info')) }} &nbsp;&nbsp;
        {{  link_to_route('car_balance.container.index', 'Cancel', null, array('class' => 'btn ')) }}
    </div>
    {{  Form::close() }}
@stop